import React from 'react';

//获取当前用户菜单
export async function currentUserMenu() {
    return await React.$post('/admin/auth/currentUserMenu')
}

export async function encrypt(params) {
    return await React.$post('/admin/auth/encrypt', params)
}

export async function decode(params) {
    return await React.$post('/admin/auth/decode', params)
}
export async function getCaptcha(key) {
    return await React.$get('/admin/auth/captcha?'+key)
}
